Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show unused environments and allow matching nodes to other environments #146

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

oneiros
Copy link
Collaborator

@oneiros oneiros commented Mar 23, 2023

Fixes #140

This is my first attempt to solve #140. It determines environments both from puppetdb and the file system, shows all environments but marks the ones only found in the file system as "unused":

image

Nodes can be selected from any environment, but a switch allows to only display the ones from the selected environment:

image

Note how I display the node's environment in parentheses directly following the name. I initially made this only for development purposes but left it in, because for now there is no other way to determine what environment a node is in.

I wonder if we should mark it more prominently, if the selected node is from a different environment and thus the whole view is more of an "what if" scenario. Maybe even using a red (or orange) alert.

Note that this includes severe changes to test data. See the discussion in #140 for details.

In addition to environments from puppetdb, hdm will now
also query the file system and distinguish between
environments that are in use (i.e. known by puppetdb) and
unused (only present in the file system).
This includes a huge shuffling around of test data as
node names can no longer be reused in different
environments.

Also includes an update to the vendored slim-select
js library.
@oneiros oneiros mentioned this pull request Mar 23, 2023
@tuxmea tuxmea merged commit d00e905 into main Mar 23, 2023
@tuxmea tuxmea deleted the issue-140 branch March 23, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

show unused environments
2 participants